const express = require('express')
const router = express.Router()
const database = require('../db/goods')
//分类数据
router.get('/api/goods/list',(req,res)=>{
    return res.send({
        code:0,
        data:[
            {
                //一级
                id:0,
                name:'推荐',
                //二级
                data:[
                    {
                        id:0,
                        name:'推荐',
                        //三级
                        list:[
                            {
                                id:0,
                                name:'铁观音',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:1,
                                name:'功夫茶具',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:2,
                                name:'茶具电器',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:3,
                                name:'紫砂壶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:4,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:5,
                                name:'武夷岩茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:6,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:7,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:8,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:9,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:10,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:11,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:12,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            }
                        ]
                    }
                ]
            },
            {
                //一级
                id:1,
                name:'绿茶',
                //二级
                data:[
                    {
                        id:0,
                        name:'绿茶',
                        //三级
                        list:[
                            {
                                id:0,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:1,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:2,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:3,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:4,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:5,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:6,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:7,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:8,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:9,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:10,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:11,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            }
                        ]
                    }
                ]
            },
            {
                //一级
                id:1,
                name:'乌龙',
                //二级
                data:[
                    {
                        id:2,
                        name:'乌龙',
                        //三级
                        list:[
                            {
                                id:0,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:1,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:2,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:3,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:4,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:5,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:6,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:7,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:8,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:9,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:10,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:11,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:12,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:13,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:14,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            }
                        ]
                    }
                ]
            },
            {
                //一级
                id:3,
                name:'红茶',
                //二级
                data:[
                    {
                        id:2,
                        name:'红茶',
                        //三级
                        list:[
                            {
                                id:0,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:1,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:2,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:3,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:4,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:5,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:6,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:7,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:8,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:9,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:10,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:11,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            }
                        ]
                    }
                ]
            },
            {
                //一级
                id:4,
                name:'白茶',
                //二级
                data:[
                    {
                        id:2,
                        name:'白茶',
                        //三级
                        list:[
                            {
                                id:0,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:1,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:2,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:3,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:4,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:5,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:6,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:7,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:8,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:9,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:10,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:11,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:12,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:13,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:14,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            }
                        ]
                    }
                ]
            },
            {
                //一级
                id:4,
                name:'普洱',
                //二级
                data:[
                    {
                        id:2,
                        name:'普洱',
                        //三级
                        list:[
                            {
                                id:0,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:1,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:2,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:3,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:4,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:5,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:6,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:7,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:8,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:9,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:10,
                                name:'龙井',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:11,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:12,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:13,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:14,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:15,
                                name:'碧螺春',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:16,
                                name:'雀舌',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:17,
                                name:'安吉白茶',
                                imgUrl:'./images/list1.jpg'
                            },
                            {
                                id:18,
                                name:'六安瓜片',
                                imgUrl:'./images/list1.jpg'
                            }
                        ]
                    }
                ]
            }
        ]
    })
})

module.exports = router